import * as React from "react";
import { Context } from "../index";

const App = () => {
  const value = React.useContext(Context);
  const appValue = React.useContext(AppContext);
  console.log(value, appValue);
  return <h1>123123</h1>;
};

const AppContext = React.createContext();
const A = () => {
  return (
    <div>
      <AppContext.Provider value={{ context: "xxxx" }}>
        <App />
      </AppContext.Provider>
    </div>
  );
};

export default A;
